<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" 
    py:replace="''"/>
<title>${node.name} - PyHMon Web Interface</title>
</head>
<body>
    <h2>Node: ${node.name}</h2>
    <form action="save_node" method="post">
	<input type="hidden" name="node_id" value="${node.node_id}"/>
	Name: <input type="text" name="name" value="${node.name}"/><br />
	Address: <input type="text" name="addr" value="${node.addr}"/><br />
	Port: <input type="text" name="port" value="${node.port}"/><br />
	Protocol: <select name="proto">
	    <option value="0" py:attrs="{'selected':'yes'} 
		if node.proto == 0 else {}">PyHMon</option>
            <option value="10" py:attrs="{'selected':'yes'} 
		if node.proto == 10 else {}">PyHMon SSL</option>
        </select><br />
	Inactive? <input type="checkbox" py:attrs="{'checked':'yes'} 
	    if node.status == 2 else {}" name="status" value="2" />
	<br /><input type="submit" name="submit" value="Save"/>
    </form>
</body>
</html>
